/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.positionorder.entity;

import com.jeeplus.modules.member.entity.Member;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 资产发货订单Entity
 * @author w
 * @version 2021-12-11
 */
public class PositionOrder extends DataEntity<PositionOrder> {
	
	private static final long serialVersionUID = 1L;
	private String positionId;		// 资产
	private String orderNo;		// 订单号
	private Member member;		// 用户
	private String goodsName;		// 商品名称
	private Integer num;		// 数量
	private String pic;		// 商品图片
	private Double price;		// 单价
	private Double totalPrice;		// 总额
	private String orderStatus;		// 订单状态
	private String orderType;		// 订单类型
	private String consignee;		// 收货人
	private String consigneePhone;		// 联系电话
	private String consigneeAddress;		// 收货地址
	private String expressName;		// 快递名称
	private String expressNo;		// 快递单号
	private Date expressTime;		// 发货时间
	private Date beginExpressTime;		// 开始 发货时间
	private Date endExpressTime;		// 结束 发货时间
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	
	public PositionOrder() {
		super();
	}

	public PositionOrder(String id){
		super(id);
	}

	@ExcelField(title="资产", align=2, sort=1)
	public String getPositionId() {
		return positionId;
	}

	public void setPositionId(String positionId) {
		this.positionId = positionId;
	}
	
	@ExcelField(title="订单号", align=2, sort=2)
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@ExcelField(title="用户", fieldType=Member.class, value="member.loginName", align=2, sort=3)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="商品名称", align=2, sort=4)
	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	
	@ExcelField(title="数量", align=2, sort=5)
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}
	
	@ExcelField(title="商品图片", align=2, sort=6)
	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}
	
	@ExcelField(title="单价", align=2, sort=7)
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@ExcelField(title="总额", align=2, sort=8)
	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}
	
	@ExcelField(title="订单状态", dictType="position_order_status", align=2, sort=9)
	public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}
	
	@ExcelField(title="订单类型", dictType="position_order_type", align=2, sort=10)
	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}
	
	@ExcelField(title="收货人", align=2, sort=11)
	public String getConsignee() {
		return consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}
	
	@ExcelField(title="联系电话", align=2, sort=12)
	public String getConsigneePhone() {
		return consigneePhone;
	}

	public void setConsigneePhone(String consigneePhone) {
		this.consigneePhone = consigneePhone;
	}
	
	@ExcelField(title="收货地址", align=2, sort=13)
	public String getConsigneeAddress() {
		return consigneeAddress;
	}

	public void setConsigneeAddress(String consigneeAddress) {
		this.consigneeAddress = consigneeAddress;
	}
	
	@ExcelField(title="快递名称", align=2, sort=14)
	public String getExpressName() {
		return expressName;
	}

	public void setExpressName(String expressName) {
		this.expressName = expressName;
	}
	
	@ExcelField(title="快递单号", align=2, sort=15)
	public String getExpressNo() {
		return expressNo;
	}

	public void setExpressNo(String expressNo) {
		this.expressNo = expressNo;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="发货时间", align=2, sort=16)
	public Date getExpressTime() {
		return expressTime;
	}

	public void setExpressTime(Date expressTime) {
		this.expressTime = expressTime;
	}
	
	public Date getBeginExpressTime() {
		return beginExpressTime;
	}

	public void setBeginExpressTime(Date beginExpressTime) {
		this.beginExpressTime = beginExpressTime;
	}
	
	public Date getEndExpressTime() {
		return endExpressTime;
	}

	public void setEndExpressTime(Date endExpressTime) {
		this.endExpressTime = endExpressTime;
	}
		
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
}